
package com.feib.stms.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import net.sourceforge.stripes.util.Log;

import org.springframework.web.context.ContextLoaderListener;

/**
 * @title (#)StartupListener.java<br>
 * @description <br>
 * @author Jimmy Liu<br>
 * @version 1.0.0 2010/11/25
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @20101025 create by Jimmy Liu<br>
 */
public class StartupListener extends ContextLoaderListener implements ServletContextListener {

    protected static final Log log = Log.getInstance(StartupListener.class);

    @Override
    public void contextInitialized(ServletContextEvent event) {
        // call Spring's context ContextLoaderListener to initialize
        // all the context files specified in web.xml
        super.contextInitialized(event);
        
        ServletContext context = event.getServletContext();
        
        setupContext(context);

    }
    
    protected void setupContext(ServletContext ctx) {
        // do nothing.
    }

}
